import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/css/global.css";
import "@/assets/fonts/iconfont.css";
// import axios from "axios";
import axios from "@/utils/request.js";
// axios.defaults.baseURL = "http://127.0.0.1:8888/api/private/v1/";
// import TreeTable from "vue-table-tree-grid";
// vue.component(tree - table, TreeTable);
Vue.prototype.$http = axios;
Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
